package cn.xorange.commons.system.mapper.system;

import cn.xorange.commons.data.core.mapper.MBaseMapper;
import cn.xorange.commons.system.entity.system.SysRoleManage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : yangjian
 * date : 2024/12/8
 * description :
 */
@Mapper
public interface SysRoleManageMapper extends MBaseMapper<SysRoleManage> {

    List<SysRoleManage> selectList(@Param(value = "isAdmin") boolean isAdmin,
                                   @Param(value = "userId") Long userId,
                                   @Param(value = "role") SysRoleManage roleManage);

    int delRoleManageRoleId(@Param("roleId")Long roleId);

    int delRoleManagePostId(@Param("postId")Long postId);
}
